<?php
	define('APP_ID','shop');
	define('BASE_PATH',str_replace('\\','/',dirname(dirname(__FILE__)) . '/shop/'));
	if (!@include(dirname(BASE_PATH).'/global.php')) exit('global.php isn\'t exists!');
	if (!@include(BASE_PATH.'/control/control.php')) exit('control.php isn\'t exists!');
	if (!@include(BASE_CORE_PATH.'/nwidc.php')) exit('nwidc.php isn\'t exists!');
	define('APP_SITE_URL',SHOP_SITE_URL);
	define('TPL_NAME',TPL_SHOP_NAME);
	define('SHOP_RESOURCE_SITE_URL',SHOP_SITE_URL.DS.'resource');
	define('SHOP_TEMPLATES_URL',SHOP_SITE_URL.'/templates/'.TPL_NAME);
	define('BASE_TPL_PATH',BASE_PATH.'/templates/'.TPL_NAME);

	Base::run(false);


	$config = Model('setting')->getListSetting();
	extract($config);





?>